]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-gtk-embed: Make the MetaWindowActor for a tray icon unreactive
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 21 Aug 2013 20:47:15 +0000 (16:47 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 21 Aug 2013 20:53:05 +0000 (16:53 -0400)
The MetaWindowActor isn't painted, and we empty its input shape in
the X scene graph, but Clutter still picked it. Set it as unreactive
so that it can't be picked.

https://bugzilla.gnome.org/show_bug.cgi?id=706536

src/shell-gtk-embed.c

index bfff044ffcf36c340ba38c55789f1419bf3dd783..dddb465597979add62ae73e3e235018ed40a9b04 100644 (file)
@@ -106,6 +106,9 @@ shell_gtk_embed_window_created_cb (MetaDisplay   *display,
                                              0, 0 /* offset x/y */);
       cairo_region_destroy (empty_region);
 
+      /* Set the actor as unreative so Clutter doesn't pick it, either */
+      clutter_actor_set_reactive (window_actor, FALSE);
+
       gdk_window_lower (gdk_window);
 
       /* Now that we've found the window we don't need to listen for